package com.exp.sys.entity;

import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="sys_admin_role")
public class AdminRole {
	@Embeddable
	public static class AdminRoleId implements java.io.Serializable {
		public String AdminId;
		public String RoleId;
		public String getAdminId() {
			return AdminId;
		}
		public void setAdminId(String adminId) {
			AdminId = adminId;
		}
		public String getRoleId() {
			return RoleId;
		}
		public void setRoleId(String roleId) {
			RoleId = roleId;
		}
	}

	@Id
	AdminRoleId adminRoleId = new AdminRoleId();

	public AdminRoleId getAdminRoleId() {
		return adminRoleId;
	}

	public void setAdminRoleId(AdminRoleId adminRoleId) {
		this.adminRoleId = adminRoleId;
	}
	
}
